package chap6;

import java.util.Scanner;

/**
 * @author oldliu
 * @since 1.0
 */
public class ArrayTest3 {
    public static void main(String[] args) {
        //数组表示某个班同学的成绩
        Scanner in=new Scanner(System.in);
        System.out.println("班级多少人：");
        int num=in.nextInt();
        int []s=new int[num];
        System.out.println("再输入他们的成绩：");
        for (int i = 0; i <s.length ; i++) {
            s[i]=in.nextInt();
        }
        System.out.println("输入完成：");
        for (int i = 0; i <s.length ; i++) {
            System.out.print(s[i]+"\t");
        }
    }
}
